# -*- coding: mbcs -*-
#
# Abaqus/CAE Release 2020 replay file
# Internal Version: 2019_09_14-01.49.31 163176
# Run by Administrator on Mon Apr  7 12:47:26 2025
#

# from driverUtils import executeOnCaeGraphicsStartup
# executeOnCaeGraphicsStartup()
#: Executing "onCaeGraphicsStartup()" in the site directory ...
from abaqus import *
from abaqusConstants import *
session.Viewport(name='Viewport: 1', origin=(0.0, 0.0), width=109.06770324707, 
    height=110.92130279541)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].maximize()
from caeModules import *
from driverUtils import executeOnCaeStartup
executeOnCaeStartup()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.ModelFromInputFile(name='abaqus', 
    inputFileName='L:/EF2D/tests/ElemTests/c3d8/abaqus.inp')
#: The model "abaqus" has been created.
#: The part "PART-1" has been imported from the input file.
#: 
#: WARNING: The following keywords/parameters are not yet supported by the input file reader:
#: ---------------------------------------------------------------------------------
#: *ELEMENTMATRIXOUTPUT
#: *MATRIXGENERATE
#: *MATRIXOUTPUT
#: *PREPRINT
#: The model "abaqus" has been imported from an input file. 
#: Please scroll up to check for error and warning messages.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    optimizationTasks=OFF, geometricRestrictions=OFF, stopConditions=OFF)
a = mdb.models['abaqus'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=59.1555, 
    farPlane=117.94, width=50.2266, height=19.6041, viewOffsetX=11.6308, 
    viewOffsetY=2.89413)
session.viewports['Viewport: 1'].view.setValues(nearPlane=55.4268, 
    farPlane=91.7322, width=47.0607, height=18.3684, cameraPosition=(4.41894, 
    -5.28732, 78.4862), cameraUpVector=(0.179959, 0.977191, -0.112752), 
    cameraTarget=(8.61063, 14.1906, -7.79093), viewOffsetX=10.8977, 
    viewOffsetY=2.7117)
session.viewports['Viewport: 1'].view.setValues(nearPlane=51.8138, 
    farPlane=99.8951, width=43.9931, height=17.1711, cameraPosition=(39.1828, 
    40.6534, 75.0142), cameraUpVector=(-0.734689, 0.505349, -0.452609), 
    cameraTarget=(10.5756, -5.2949, 4.93505), viewOffsetX=10.1873, 
    viewOffsetY=2.53494)
session.viewports['Viewport: 1'].view.setValues(nearPlane=57.0406, 
    farPlane=107.712, width=48.4311, height=18.9033, cameraPosition=(93.658, 
    40.3011, 10.469), cameraUpVector=(-0.628639, 0.623303, -0.465088), 
    cameraTarget=(10.4695, 12.1007, 21.6544), viewOffsetX=11.215, 
    viewOffsetY=2.79065)
session.viewports['Viewport: 1'].view.setValues(nearPlane=52.3989, 
    farPlane=104.914, width=44.4901, height=17.3651, cameraPosition=(42.568, 
    78.8692, 42.4424), cameraUpVector=(-0.610174, 0.191483, -0.768779), 
    cameraTarget=(3.19731, 3.87726, 16.6187), viewOffsetX=10.3024, 
    viewOffsetY=2.56356)
session.viewports['Viewport: 1'].view.setValues(nearPlane=53.6607, 
    farPlane=104.233, width=45.5616, height=17.7833, cameraPosition=(44.9983, 
    47.4463, 73.0844), cameraUpVector=(-0.238448, 0.661954, -0.710604), 
    cameraTarget=(-0.730399, 6.82811, 9.05507), viewOffsetX=10.5505, 
    viewOffsetY=2.62529)
session.viewports['Viewport: 1'].view.setValues(nearPlane=52.5835, 
    farPlane=105.895, width=44.6471, height=17.4263, cameraPosition=(59.1453, 
    73.0984, 36.9533), cameraUpVector=(-0.765331, 0.311294, -0.563351), 
    cameraTarget=(5.54148, 4.78086, 19.6315), viewOffsetX=10.3387, 
    viewOffsetY=2.57259)
session.viewports['Viewport: 1'].view.setValues(nearPlane=52.1802, 
    farPlane=105.848, width=44.3047, height=17.2927, cameraPosition=(56.6721, 
    64.1781, 52.9369), cameraUpVector=(-0.824486, 0.399599, -0.400678), 
    cameraTarget=(7.00649, 0.0155072, 17.4801), viewOffsetX=10.2594, 
    viewOffsetY=2.55286)
session.viewports['Viewport: 1'].view.setValues(nearPlane=52.5871, 
    farPlane=106.05, width=44.6503, height=17.4276, cameraPosition=(60.5929, 
    71.5817, 37.9371), cameraUpVector=(-0.69265, 0.333412, -0.639587), 
    cameraTarget=(4.07128, 6.13732, 18.8837), viewOffsetX=10.3394, 
    viewOffsetY=2.57277)
session.viewports['Viewport: 1'].view.setValues(nearPlane=53.4517, 
    farPlane=104.291, width=45.3845, height=17.7141, cameraPosition=(47.0655, 
    81.6174, 32.3624), cameraUpVector=(-0.729892, 0.130064, -0.671074), 
    cameraTarget=(5.01478, 4.80639, 19.2284), viewOffsetX=10.5094, 
    viewOffsetY=2.61507)
session.viewports['Viewport: 1'].view.setValues(nearPlane=52.602, 
    farPlane=105.203, width=44.663, height=17.4325, cameraPosition=(49.5476, 
    76.3455, 41.5676), cameraUpVector=(-0.707656, 0.247632, -0.661741), 
    cameraTarget=(4.44441, 3.85881, 18.0712), viewOffsetX=10.3423, 
    viewOffsetY=2.5735)
mdb.models.changeKey(fromName='abaqus', toName='c3d8')
a = mdb.models['c3d8'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].view.setValues(nearPlane=52.9803, 
    farPlane=104.824, width=32.3886, height=12.6417, viewOffsetX=14.8461, 
    viewOffsetY=3.05268)
session.viewports['Viewport: 1'].view.setValues(nearPlane=53.4131, 
    farPlane=104.118, width=32.6532, height=12.745, cameraPosition=(62.0738, 
    49.8072, 60.6891), cameraUpVector=(-0.653449, 0.601884, -0.459064), 
    cameraTarget=(3.59845, 0.95585, 15.5794), viewOffsetX=14.9674, 
    viewOffsetY=3.07762)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    nodeLabels=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    renderStyle=WIREFRAME)
session.viewports['Viewport: 1'].view.setValues(nearPlane=49.48, 
    farPlane=108.051, width=42.0124, height=16.3979, viewOffsetX=18.0829, 
    viewOffsetY=6.80746)
session.viewports['Viewport: 1'].view.setValues(nearPlane=51.847, 
    farPlane=105.684, width=44.0221, height=17.1824, cameraPosition=(59.1265, 
    53.6577, 60.3397), cameraUpVector=(-0.559817, 0.596754, -0.574883), 
    cameraTarget=(0.651183, 4.80637, 15.23), viewOffsetX=18.9479, 
    viewOffsetY=7.13312)
session.viewports['Viewport: 1'].view.setValues(nearPlane=51.8815, 
    farPlane=105.649, width=44.0514, height=17.1938, cameraPosition=(63.6789, 
    47.9547, 60.6145), cameraUpVector=(-0.696676, 0.597018, -0.39776), 
    cameraTarget=(5.2036, -0.896619, 15.5048), viewOffsetX=18.9605, 
    viewOffsetY=7.13786)
session.viewports['Viewport: 1'].view.setValues(nearPlane=53.4888, 
    farPlane=107.314, width=45.4161, height=17.7265, cameraPosition=(72.3451, 
    45.8427, 55.4106), cameraUpVector=(-0.599268, 0.675309, -0.429925), 
    cameraTarget=(3.61701, 4.60173, 17.7765), viewOffsetX=19.5479, 
    viewOffsetY=7.35899)
session.viewports['Viewport: 1'].view.setValues(nearPlane=53.1039, 
    farPlane=107.699, width=62.5891, height=24.4293, viewOffsetX=25.656, 
    viewOffsetY=9.17664)
mdb.models['c3d8'].loads['CFORCE-1'].setValues(cf2=10.0, 
    distributionType=UNIFORM, field='')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.Job(name='fy10N', model='c3d8', description='', type=ANALYSIS, atTime=None, 
    waitMinutes=0, waitHours=0, queue=None, memory=90, memoryUnits=PERCENTAGE, 
    getMemoryFromAnalysis=True, explicitPrecision=SINGLE, 
    nodalOutputPrecision=SINGLE, echoPrint=OFF, modelPrint=OFF, 
    contactPrint=OFF, historyPrint=OFF, userSubroutine='', scratch='', 
    resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=1, numGPUs=0)
mdb.jobs['fy10N'].submit(consistencyChecking=OFF)
#: The job input file "fy10N.inp" has been submitted for analysis.
#: Job fy10N: Analysis Input File Processor completed successfully.
#: Job fy10N: Abaqus/Standard completed successfully.
#: Job fy10N completed successfully. 
o3 = session.openOdb(name='K:/250407/fy10N.odb')
#: Model: K:/250407/fy10N.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       2
#: Number of Node Sets:          4
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(width=55.0263, height=21.4774, 
    viewOffsetX=4.04813, viewOffsetY=0.68396)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(nearPlane=31.64, 
    farPlane=68.0693, width=34.6326, height=13.5175, viewOffsetX=-0.148149, 
    viewOffsetY=2.3326)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(COMPONENT, 'U2'), )
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
p = mdb.models['c3d8'].parts['PART-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
mdb.models['c3d8'].materials['GOLD'].elastic.setValues(table=((77200.0, 0.3), 
    ))
a = mdb.models['c3d8'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.jobs['fy10N'].submit(consistencyChecking=OFF)
#: The job input file "fy10N.inp" has been submitted for analysis.
#: Job fy10N: Analysis Input File Processor completed successfully.
#: Job fy10N: Abaqus/Standard completed successfully.
#: Job fy10N completed successfully. 
mdb.Job(name='getElemMatrix', model='c3d8', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=1, 
    numGPUs=0)
import sys
sys.path.insert(8, 
    r'g:/SIMULIA/EstProducts/2020/win_b64/code/python2.7/lib/abaqus_plugins/iSolver/ExportMatlabMatrix')
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getJobInfo()
del mdb.customData.s
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames('c3d8')
del mdb.customData.setNames
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames('c3d8')
del mdb.customData.setNames
mdb.jobs['getElemMatrix'].writeInput(consistencyChecking=OFF)
session.viewports['Viewport: 1'].setValues(displayedObject=None)
o1=session.openOdb(
    name='K:/250407/getElemMatrix.odb');session.viewports[session.currentViewportName].setValues(
    displayedObject=o1)
#: Model: K:/250407/getElemMatrix.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       2
#: Number of Node Sets:          4
#: Number of Steps:              2
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
#* There is no valid step data available on the database. If the analysis is 
#* running, the database must be closed and reopened once the results have been 
#* initialized. The requested operation has been cancelled.
o1 = session.openOdb(name='K:/250407/fy10N.odb', readOnly=False)
session.viewports['Viewport: 1'].setValues(displayedObject=o1)
#: Model: K:/250407/fy10N.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       2
#: Number of Node Sets:          4
#: Number of Steps:              1
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
odb = session.odbs['K:/250407/fy10N.odb']
session.writeFieldReport(fileName='abaqus.rpt', append=ON, 
    sortItem='Element Label', odb=odb, step=0, frame=1, 
    outputPosition=INTEGRATION_POINT, variable=(('S', INTEGRATION_POINT, ((
    INVARIANT, 'Mises'), )), ), stepFrame=SPECIFY)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='S', outputPosition=INTEGRATION_POINT, refinement=(INVARIANT, 
    'Mises'), )
a = mdb.models['c3d8'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.Model(name='c3d8-Copy', objectToCopy=mdb.models['c3d8'])
#: The model "c3d8-Copy" has been created.
a = mdb.models['c3d8-Copy'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
del mdb.jobs['getElemMatrix']
mdb.Job(name='getElemMatrix', model='c3d8-Copy', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=1, 
    numGPUs=0)
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getJobInfo()
del mdb.customData.s
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames('c3d8')
del mdb.customData.setNames
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames(
    'c3d8-Copy')
del mdb.customData.setNames
mdb.jobs['getElemMatrix'].writeInput(consistencyChecking=OFF)
mdb.jobs['getElemMatrix'].submit(consistencyChecking=OFF)
#: The job input file "getElemMatrix.inp" has been submitted for analysis.
#: Job getElemMatrix: Analysis Input File Processor completed successfully.
#: Job getElemMatrix: Abaqus/Standard completed successfully.
#: Job getElemMatrix completed successfully. 
session.viewports['Viewport: 1'].setValues(
    displayedObject=session.odbs['K:/250407/fy10N.odb'])
o3 = session.openOdb(name='K:/250407/getElemMatrix.odb')
#: Model: K:/250407/getElemMatrix.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       2
#: Number of Node Sets:          4
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
a = mdb.models['c3d8-Copy'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getJobInfo()
del mdb.customData.s
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames('c3d8')
del mdb.customData.setNames
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames('c3d8')
del mdb.customData.setNames
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames(
    'c3d8-Copy')
del mdb.customData.setNames
mdb.jobs['getElemMatrix'].writeInput(consistencyChecking=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
del mdb.models['c3d8-Copy'].boundaryConditions['Disp-BC-4']
del mdb.models['c3d8-Copy'].boundaryConditions['Disp-BC-5']
del mdb.models['c3d8-Copy'].boundaryConditions['Disp-BC-6']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getJobInfo()
del mdb.customData.s
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames('c3d8')
del mdb.customData.setNames
import ExportMatlabMatrixKernel; ExportMatlabMatrixKernel.getSetNames(
    'c3d8-Copy')
del mdb.customData.setNames
mdb.jobs['getElemMatrix'].writeInput(consistencyChecking=OFF)
p = mdb.models['c3d8-Copy'].parts['PART-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
